﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.UnityExtensions;
using Microsoft.Practices.Unity; 
namespace Skynet.RiaClient
{
    public class Bootstrapper : UnityBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            var  shell = Container.Resolve<Shell>();
            Application.Current.RootVisual = shell;
            return shell;
        }
        protected override IModuleCatalog GetModuleCatalog()
        {
            ModuleCatalog catalog = new ModuleCatalog().AddModule("Foundation", typeof(Skynet.SLFoundation.ModuleIni).AssemblyQualifiedName).AddModule("Administration", typeof(Skynet.SLAdministration.ModuleIni).AssemblyQualifiedName, "Foundation");
            return catalog;
        }


    }
}
